<?php
/**
 * User: Mykola B.
 * Date: 3/2/13
 * Time: 2:05 PM
 */
namespace models {
    class VisualisationParamsModel extends BaseModel
    {
        protected static $fields = array(
            'id',
            'key',
            'value',
            'description'
        );

        public function __construct() {
            return parent::__construct('visualisation_params');
        }

        public function getByKey($key) {
            return $this->mapper->load(array('`key`=?', $key));
        }
    }
}
